/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-25 17:09:14
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-25 17:11:03
 */
public class Test_Substring {
    public static void main(String[] args) {
        String str = "hello world";
        //以下两行代码一致
        String newStr = str.substring(0);
        //String newstr = str.substring(0,str.length());
        System.out.println(newStr);
    }
}
